/**
 * 
 */
package cn.com.xf.service;

import java.util.List;

import cn.com.xf.domain.TblOaNotice;
import cn.com.xf.domain.VDstarea;

/**
 * @author Administrator
 * 
 */
public interface NoticeService {

	/**
	 * 查询
	 * 
	 * @param begin
	 * @param pageSize
	 * @param searchField
	 * @param searchValue
	 * @param orderByField
	 * @param orderByMode
	 * @param center 
	 * @return
	 */
	List<TblOaNotice> selectNotice(int begin, int pageSize, String orderByField, String orderByMode, String title,
			String viceTitle, String isimportant, String istop, String group, String center);

	/**
	 * 统计
	 * 
	 * @param filed
	 * @param value
	 * @return
	 */
	int selectNoticeCount(String title, String viceTitle, String isimportant, String istop, String group, String center);

	/**
	 * 插入
	 * 
	 * @param coreNotice
	 * @return
	 */
	int insertNotice(TblOaNotice coreNotice);

	/**
	 * 按照ID查询
	 * 
	 * @param id
	 * @return
	 */
	TblOaNotice selectNoticeById(Integer id);

	/**
	 * 更新
	 * 
	 * @param coreNotice
	 * @return
	 */
	int updateNotice(TblOaNotice coreNotice);

	/**
	 * 删除单条记录
	 * 
	 * @param noticeId
	 * @return
	 */
	int deleteByNoticeId(String noticeId);

	/**
	 * 获取上下条
	 * 
	 * @param noticeId
	 * @param centerId 
	 * @return
	 */
	List<TblOaNotice> selectPrevAndNextById(String noticeId, String group, String centerId);

	/**
	 * 插入读过的记录
	 * 
	 * @param noticeId
	 * @param empId
	 * @return
	 */
	int insertNoticeRead(String noticeId, String empId, String group);

	/**
	 * 获得区域负责人手机
	 * 
	 * @return
	 */
	List<VDstarea> selectMobiles();

	String selectOfCenter(String siteId);

	List<String> selectRegions(Integer integer);

}
